﻿#ifndef FORM_LOG_H
#define FORM_LOG_H

#include <QWidget>  
#include <QStandardItemModel>  
#include <QSortFilterProxyModel>  
#include "sortlogmodel.h"

namespace Ui {
	class FormLog;
}

class FormLog : public QWidget
{
	Q_OBJECT

public:
	explicit FormLog(QWidget* parent = nullptr);
	~FormLog();

	void saveJson();

	bool readJson();

public:
	int curIndex;
	SortLogModel* sortModel;
	QStandardItemModel* model_data;
	void init_tableview();

	void update_tableview();

private slots:
	void on_lineEdit_device_editingFinished();

	void on_lineEdit_reson_editingFinished();


	void on_comboBox_reson_textActivated(const QString& arg1);

	void on_comboBox_device_textActivated(const QString& arg1);

	void on_pushButton_filter_clicked();

private:
	Ui::FormLog* ui;
};

#endif // FORM_LOG_H
